package com.spi.soconversion.base.definition;

import com.spi.soconversion.util.SOCConstants;
import com.spi.soconversion.util.SOCUtility;
import com.spi.soconversion.util.XMLAttributeConstants;
import com.spi.soconversion.util.XMLTagConstants;

public class SOCOrderPersonalInfoShipTo {
	
		private String addressID;
		private String personID;
		
		public String getAddressID() {
			return addressID;
		}

		public void setAddressID(String addressID) {
			this.addressID = addressID;
		}

		public void setPersonID(String personID) {
			this.personID = personID;
		}

		public String getPersonID() {
			return personID;
		}
		
		@Override
		public String toString(){
			StringBuffer sb = new StringBuffer();
			
			sb.append(XMLTagConstants.START_TAG_PERSONAL_INFO_SHIP_TO);		
			sb.append(SOCConstants.BLANK_STRING);
			
			sb.append(SOCUtility.getAttribute(XMLAttributeConstants.ADDRESS_ID, getAddressID()));		
			sb.append(SOCConstants.BLANK_STRING);
			
			sb.append(SOCUtility.getAttribute(XMLAttributeConstants.PERSON_ID, getPersonID()));
			sb.append(SOCConstants.BLANK_STRING);
			
			sb.append(SOCConstants.CLOSING_XML_TAG);
			sb.append(SOCConstants.NEW_LINE);
			
			sb.append(XMLTagConstants.END_TAG_PERSONAL_INFO_SHIP_TO);
			
			return sb.toString();
		}

}
